package com.dms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dms.entity.Suser;
import com.dms.mapper.SuserMapper;
import com.dms.service.SuserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

//接口继承ServiceImpl<SuserMapper, Suser> 实现implements SuserService接口，
@Service
public class SuserServiceImpl extends ServiceImpl<SuserMapper, Suser> implements SuserService {
    //注入suserMapper
    @Resource   //注入Resource命令
    private SuserMapper suserMapper;
    @Override
    public List<Suser> listAll() {//导入方法
        return suserMapper.listAll();
    }

    @Override
    public IPage pageC(Page<Suser> page) {
        return suserMapper.pageC(page);
    }

    @Override
    public IPage pageCC(IPage<Suser> page, Wrapper wrapper) {
        return suserMapper.pageCC(page, wrapper);
    }
}
